package main

import "fmt"

func BubbleSort(arr [10] int)[10] int{
	for i := 0; i < len(arr)-1; i++ {
		for j := 0; j < len(arr)-1-i; j++ {
			if arr[j] > arr[j+1] {
				arr[j], arr[j+1] = arr[j+1], arr[j]
			}
		}
	}
	return arr
}

func main() {
	arr := [10] int{9, 1, 5, 6, 8, 4, 7, 10, 3, 2}
	arr = BubbleSort(arr)
	fmt.Println(arr)
}
